home *** CD-ROM | disk | FTP | other *** search
Text File | 1988-09-12 | 806 b | 35 lines | [TEXT/MSBB] |
- ' Display Fonts
- ' ©Copyright 1988 MacTutor
- ' by Dave Kelly
-
- ' This program will display all your system fonts
- ' with a sample and by name.
- ' This program uses the ToolBox statement in
- ' QuickBASIC version 1.0
-
- ToolBox "I" ' Initialize Toolbox
- DEFINT a-z
- x=0
- FontName$=""
- FOR i=0 TO 254 ' Cycle through all the fonts
- TEXTFONT(i)
- GOSUB GetFontsname
- IF FontName$<>"" THEN
- PRINT "This is a sample of font #";
- CALL TEXTFONT(0):PRINT i;" ";FontName$
- IF x/10 >1 THEN
- x=0:PRINT "Click mouse button to continue..."
- WHILE MOUSE(0)<>1 :WEND:CLS
- ELSE
- x=x+1
- END IF
- END IF
- NEXT
- WHILE MOUSE(0)<>1:WEND
- END
-
- GetFontsname: 'Get the name of the Font with ID = i
- TrapNo%=&HA8FF
- ToolBox "P",TrapNo%,(i),FontName$
- RETURN
-